package com.mydb.core.util;

import java.io.FileInputStream;
import java.io.IOException;

import org.jdom.Document;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;

public class DBUtils {
	public static Document getDocument(String path) throws JDOMException, IOException{
		FileInputStream fis = new FileInputStream(path);
		SAXBuilder sb = new SAXBuilder();
		return sb.build(fis);
	}
}
